<template>
  <div>
    <input type="email" v-model="email" />

    <button @click="submit">Submit</button>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';

const $emit = defineEmits({ submit: (val) => val });
const email = ref('');
const submit = () => {
  $emit('submit', email);
};
</script>

<style scoped></style>
